﻿@model AnnouncementListVM

@{
    ViewBag.Title = "网站公告";
}

<!-- banner start -->
<section class="banner banner-news"></section>
<!-- banner end -->

<div class="container mb30">
    <div class="row">
        <aside class="col-md-3">
            <div class="leftbox left_nav">
                <header class="title">
                    <h3>新闻中心</h3>
                </header>
                <nav class="aboutNav">
                    @Html.Partial("_newsNav")
                </nav>
            </div>

            <div class="leftbox hidden-sm hidden-xs">
                <header class="title">
                    <h3>推荐新闻</h3>
                </header>
                <div class="lastNews">
                    <figure>
                        <a href="#">
                            <img src="Content/Public/img/news/news_17.png" />
                        </a>
                    </figure>
                    <ul>
                        <li>
                            <a href="About.html" class="active">北京公交已配专职安全员 未..</a>
                        </li>
                        <li>
                            <a href="About.html">公安部要求公交地铁配安全员..</a>
                        </li>
                        <li>
                            <a href="About.html">中组部首次明确5类岗位“裸..</a>
                        </li>
                        <li>
                            <a href="About.html">内蒙古厅官家中查出成捆现钞..</a>
                        </li>
                        <li>
                            <a href="About.html">军报：徐才厚蒋洁敏李东生等..</a>
                        </li>
                        <li>
                            <a href="About.html">军报：乌鲁木齐市保安服务公司新到..</a>
                        </li>
                        <li>
                            <a href="About.html">军报：最高检以涉嫌受贿罪对蒋洁敏..</a>
                        </li>
                        <li>
                            <a href="About.html">军报：云南省原人大副主任孔垂柱去..</a>
                        </li>
                    </ul>

                </div>
            </div>
        </aside>
        <section class="col-md-9">
            <div class="main-content">
                <header class="title">
                    <h2>网站公告</h2>
                </header>
                <article class="newslist">
                    <ul class="articlelist">
                        @foreach (var item in Model.Announcements)
                        {
                            <li class="row">
                                <div class="col-xs-12 col-sm-3 news-thumb">
                                    <a href="@Url.Action("Detail",new { id=item.Id})">
                                        @if (string.IsNullOrEmpty(item.Thumbnail))
                                        {
                                            <img src="Content/Public/img/news_thumb.jpg" />
                                        }
                                        else
                                        {
                                            <img src="@item.Thumbnail" />
                                        }

                                    </a>
                                </div>
                                <div class="col-xs-12 col-sm-9">
                                    <h3><a href="@Url.Action("Detail",new { id=item.Id})">@item.Title</a></h3>                                   
                                    <p class="tr">
                                        <time datetime="@item.CreatedDate">@item.CreatedDate.ToShortDateString()</time>
                                    </p>
                                </div>
                            </li>
                        }

                        
                    </ul>

             
                    <footer class="container-fluid">
                        <div class="row">
                            <div class="col-sm-12">
                                @Html.PagedListPager((IPagedList)Model.Announcements, page => Url.Action("Index", new { page, keyword = Model.Keyword }))
                            </div>
                            @*<div class="col-sm-5">
                                <div class="text-right form-inline hidden">
                                    总计 @Model.TotalCount 条
                                </div>
                            </div>*@
                        </div>
                    </footer>

                </article>
            </div>
        </section>
    </div>
</div>